package com.ny.entity;

public class Order {
    private int orderId;
    private int studentId;
    private int productId;
    private int number;
    private double price;

    public Order() {}
    public Order(int orderId, int studentId, int productId, int number, double price)
    {
        this.studentId = studentId;
        this.productId = productId;
        this.number = number;
        this.price = price;
    }
    public int getOrderId()
    {return orderId;}
    public void setOrderId(int orderId)
    {this.orderId = orderId;}
    public int getStudentId()
    {return studentId;}
    public void setStudentId(int studentId)
    {this.studentId = studentId;}
    public int getProductId()
    {return productId;}
    public void setProductId(int productId)
    {this.productId = productId;}
    public int getNumber()
    {return number;}
    public void setNumber(int number)
    {this.number = number;}
    public double getPrice()
    {return price;}
    public void setPrice(double price)
    {this.price = price;}

    @Override
    public String toString(){
        return "Order{" +
                "orderId=" + orderId +
                ", studentId=" + studentId +
                ", productId=" + productId +
                ", number=" + number +
                ", price=" + price +
                '}';
    }
}
